12. Categorical Factors

M4 L2A 23 Categorical Factors V2

Categorical Factors

When handling categorical variables, we can make each unique value within a category be its own variable. In this example, the country variable becomes "country_usa", "country_india", "country_brazil" etc. Then assign a value to each of these variables to represent how "exposed" the company is to each country.